/*
 * @author Ashish Tomar
 */

package coms6111.astbbw;

/**
 * A lightweight shell around an array of {@link DocumentSet} objects
 * @author Ashish Tomar
 */
public class ResultSet {

	public DocumentSet doc[];
	public int totalHits = 0;
	public int deepHits = 0;

	/**
	 *	By default, there are no results in a resultset (the array can be overwritten later).
	 */
	public ResultSet(){
		this(0);
	}

	/**
	 * @param n The number of results to be stored in this object
	 */
	public ResultSet(int n){
		int i=0;
		doc=new DocumentSet[n];
		for(i=0;i<n;i++)
		{
			doc[i]= new DocumentSet();
		}
	}

	/**
	 *
	 * @return the number of DocumentSet objects in this ResultSet
	 */
	public int getNodeLen()
	{
		return this.doc.length;
	}

}
